﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Caliburn.PresentationFramework.ApplicationModel;
using Caliburn.Core.Metadata;
using Microsoft.Practices.ServiceLocation;
using XWord.Fundamental.Domain.Model;
using XWord.Fundamental.Domain;


namespace XWord.GUI.Presenters
{
    [Singleton(typeof(TestPresenter))]
    public class TestPresenter : Presenter
    {
        private IAlphabetModel _alphabetModel;
        private IServiceLocator _serviceLocator;
        public TestPresenter(IServiceLocator entityFactory)
        {
            _serviceLocator = entityFactory;
            
            _alphabetModel = _serviceLocator.GetInstance<IAlphabetModel>();
            AlphabetList = _alphabetModel.GetAlphabetList();
        }

        public IList<Alphabet> AlphabetList { get; set; }
    }
}
